
const authoritys = [
  { id: 1, tag: 'Create', authorityName: '增加' },
  { id: 2, tag: 'Update', authorityName: '修改' },
  { id: 3, tag: 'Delete', authorityName: '删除' }]

const data = [
  { id: 1, pageName: '用户页面', authority: authoritys },
  { id: 2, pageName: '权限页面', authority: authoritys },
  { id: 3, pageName: '资源页面', authority: authoritys }
]

module.exports = [
  {
    url: '/resource/getAllResource',
    type: 'get',
    response: config => {
      console.log('/resource/getAllResource')
      const items = data
      return {
        code: 20000,
        data: {
          total: items.length,
          items: items
        }
      }
    }
  }
]
